/**
 * 
 */
package cn.tonyqiu.wonuly.web.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author <a href="mailto:tony.qiu.smart@gmail.com">Tony Qiu</a>
 * 
 */
public class DateFormatter {

	private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

	public static String formatDateShorter(Date date) {

		return sdf.format(date);
	}

	public static Date parse(String source) throws Exception {
		return sdf.parse(source);
	}
}
